home *** CD-ROM | disk | FTP | other *** search
/ World of Video / World of Video.iso / gfxprograms / 3dprograms / rayshade-4.0 / fixes / fix017 / zbuf.h < prev    next >
C/C++ Source or Header  |  1995-02-13  |  916b  |  39 lines

  1. #ifndef ZBUF_H
  2. #define ZBUF_H
  3.  
  4. #ifndef FILE
  5. #include <stdio.h>
  6. #endif
  7. #include "libcommon/common.h"
  8.  
  9. #define ZBUF_HF        1
  10. #define ZBUF_RLE    2
  11. #define ZBUF_TXT    3
  12. #define ZBUF_TXT3    4
  13. #define DEFAULT_ZBUF_TYPE    ZBUF_HF
  14.  
  15. #define ZBUF_INF    ((Float) -1000.0)      /* Infinity; same as HF_UNSET in
  16.                           libray/libobj/hf.h */
  17. /*
  18.  * Z-buffer
  19.  */
  20. typedef struct {
  21.     FILE *fzbuf;            /* Zbuf file pointer */
  22.     char *rayfile;            /* Name of .ray input file */
  23.     char *outfile;            /* Name of output file */
  24.     Float **array;            /* Array of minimum distances from
  25.                        all pixels in the current window */
  26.     char **argv;            /* Write args as comment in text
  27.                        file */
  28.     int pad;            /* Number of pad values in
  29.                        heightfield output */
  30. } RSZbuf;
  31.  
  32. typedef int HEIGHTFIELD_SIZE;        /* Same size as libray/libobj/hf.c */
  33.  
  34. extern RSZbuf zbuffer;
  35. extern void ZbufPrint(/* void */);
  36. extern void ZbufAdd(/* Float, Float, Float */);
  37.  
  38. #endif
  39.